home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / IllegalAccessException.java < prev    next >
Text File  |  1998-09-22  |  2KB  |  67 lines

  1. /*
  2.  * @(#)IllegalAccessException.java    1.4 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.lang;
  16.  
  17. /**
  18.  * Thrown when an application tries to load in a class through its 
  19.  * string name using:
  20.  * <ul>
  21.  * <li>The <code>forName</code> method in class <code>Class</code>.
  22.  * <li>The <code>findSystemClass</code> method in class 
  23.  *     <code>ClassLoader</code>.
  24.  * <li>The <code>loadClass</code> method in class <code>ClassLoader</code>.
  25.  * </ul>
  26.  * <p>
  27.  * but the currently executing method does not have access to the 
  28.  * definition of the specified class, because the class is not public 
  29.  * and in another package. 
  30.  * <p>
  31.  * An instance of this class can also be thrown when an application 
  32.  * tries to create an instance of a class using the 
  33.  * <code>newInstance</code> method in class <code>Class</code>, but 
  34.  * the current method does not have access to the appropriate 
  35.  * zero-argument constructor. 
  36.  *
  37.  * @author  unascribed
  38.  * @version 1.4, 07/01/98
  39.  * @see     java.lang.Class#forName(java.lang.String)
  40.  * @see     java.lang.Class#newInstance()
  41.  * @see     java.lang.ClassLoader#findSystemClass(java.lang.String)
  42.  * @see     java.lang.ClassLoader#loadClass(java.lang.String, boolean)
  43.  * @since   JDK1.0
  44.  */
  45. public
  46. class IllegalAccessException extends Exception {
  47.     /**
  48.      * Constructs an <code>IllegalAccessException</code> without a 
  49.      * detail message. 
  50.      *
  51.      * @since   JDK1.0
  52.      */
  53.     public IllegalAccessException() {
  54.     super();
  55.     }
  56.  
  57.     /**
  58.      * Constructs an <code>IllegalAccessException</code> with a detail message. 
  59.      *
  60.      * @param   s   the detail message.
  61.      * @since   JDK1.0
  62.      */
  63.     public IllegalAccessException(String s) {
  64.     super(s);
  65.     }
  66. }
  67.